<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table  width="100%" class="table table-bordered table-striped table-hover table-condensed">
		<tr width=100%>
			<td>学号</td>
			<td>科目</td>
			<td>成绩</td>
		</tr>
	<c:forEach items="${grade}" var="b">
		<tr>
			<td>${b.student.username}</td>
			<td>${b.course.name}</td>
			<td width=30%><input onchange="fun_1(${b.id}, this.value)" class="form-control" value = "${b.grade}" class = "AAA" name="grade" type="text"></td>
		</tr>
	</c:forEach>
</table>
<script type="text/javascript">
	function fun_1(id, grade){
		$.post("updata?grade="+grade+"&id="+id);
	}
</script>